<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:39:"template/admin/default/index\index.html";i:1496227457;s:41:"template/admin/default/Public\header.html";i:1496221405;s:38:"template/admin/default/index\menu.html";i:1495877812;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?php echo $site['name']; ?></title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="__STATIC__bootstrap-3.3.0/dist/css/bootstrap.css">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="__STATIC__jquery-3.1.1.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="__STATIC__bootstrap-3.3.0/dist/js/bootstrap.min.js"></script>
    <!--载入登陆css-->
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_qq579wn8iod2t9.css">
    <link rel="stylesheet" href="__PUBLIC__css/style.css">
    <script src="__PUBLIC__js/screen.js"></script>
</head>

<body>
<link rel="stylesheet" href="__PUBLIC__/css/index.css">
<!--Header-->
<div id="header">
    <!--Top投影层-->
    <div id="top">
        <!-- logo-->
        <div class="logo"><img src="__PUBLIC__/images/admin_logo.png"> </div>
        <!-- 会员信息-->
        <div class="top_user"  data-toggle="dropdown">
            <div class="top_user_pic"><div class="top_user_thumb"><img src="__PUBLIC__/images/user_pic.jpg" width="45"></div> </div>
            <div class="top_user_u">
                <div class="top_user_name"><?php echo session('user.name'); ?></div>
                <div class="top_user_level">超级管理员 <i class="iconfont icon-xiangxia"></i></div>
            </div>
            <!--下拉会员信息-->
            <div class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                111
            </div>
            <!--下拉会员信息 End-->
        </div>
        <!-- 右侧菜单-->
        <div class="top_menu">
            <ul>
                <li>
                    <a href="<?php echo url('index/index/index'); ?>" target="_blank">
                        <div class="i"><i class="iconfont icon-shouyeshouye"></i></div>
                        <div class="text">前台首页</div>
                    </a>
                </li>
                <li>
                    <a href="<?php echo url('site/index'); ?>" target="frame">
                        <div class="i"><i class="iconfont icon-shezhi"></i></div>
                        <div class="text">系统设置</div>
                    </a>
                </li>
                <li>
                    <a href="">
                        <div class="i"><i class="iconfont icon-qingchu"></i></div>
                        <div class="text">清理缓存</div>
                    </a>
                </li>
                <li>
                    <a href="">
                        <div class="i"><i class="iconfont icon-suodingxuanzhuan"></i></div>
                        <div class="text">锁定界面</div>
                    </a>
                </li>
                <li>
                    <a href="">
                        <div class="i"><i class="iconfont icon-skin"></i></div>
                        <div class="text">换肤</div>
                    </a>
                </li>
                <li>
                    <a href="<?php echo url('login/out'); ?>">
                        <div class="i"><i class="iconfont icon-logout"></i></div>
                        <div class="text">退出</div>
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>
<!--Main-->
<div id="main">
    <!--Left 左侧菜单-->
    <div class="main_left">
    <div class="menu" id="accordion">
        <ul>
            <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['is_show'] == 1): ?>
            <li >
                <a  data-toggle="collapse" data-parent="#accordion" href="#level_<?php echo $vo['id']; ?>">
                    <i class="iconfont icon <?php echo $vo['css']; ?>"></i>
                    <span class="span1"><?php echo $vo['title']; ?></span>
                    <span class="span2"><i class="iconfont icon-shouqi" style="display: none;"></i></span>
                </a>
                <?php if(!(empty($vo['child']) || (($vo['child'] instanceof \think\Collection || $vo['child'] instanceof \think\Paginator ) && $vo['child']->isEmpty()))): ?>
                <dl id="level_<?php echo $vo['id']; ?>" class="collapse ">
                    <?php if(is_array($vo['child']) || $vo['child'] instanceof \think\Collection || $vo['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): $mod = ($i % 2 );++$i;if($sub['is_show'] == 1): ?>
                    <dd><a href="<?php echo $sub['url']; ?>" target="frame"><?php echo $sub['title']; ?></a></dd>
                    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                </dl>
                <?php endif; ?>
            </li>
            <?php endif; endforeach; endif; else: echo "" ;endif; ?>


            <li >
                <a h data-toggle="collapse" data-parent="#accordion" href="#level_99" >
                    <i class="iconfont icon-wenzhang icon"></i>
                    <span class="span1">基础模板</span>
                    <span class="span2"><i class="iconfont icon-shouqi"></i></span>
                </a>
                <dl id="level_99" class="collapse">
                    <dd><a href="<?php echo url('test/index'); ?>" target="frame">列表页</a></dd>
                    <dd><a href="<?php echo url('test/add'); ?>" target="frame">添加页</a></dd>
                </dl>

            </li>
        </ul>
    </div>

</div>
    <!--Rig-->
    <div class="main_rig">
        <!--内容区块-->

        <iframe src="<?php echo url('admin/index/info'); ?>" frameborder="0" width="100%" height="100%" scrolling="yes" name="frame"></iframe>
        <!--内容区块End-->
    </div>
</div>
</body>
<script>

   // 初始化浏览器框架大小
    $(document).ready(function(){
        main();
    })
    // 浏览器框架大小变动
    window.onresize=function(){
        main();
    }
    // 框架变动时间
    function main(){
    // Header高度
    $header_h = $("#header").css('height');
   // 显示器分辨率
  $h =  document.documentElement.clientHeight;
  $height = $h- parseInt($header_h);

   $("#main").css('height',$height);
}
</script>
</html>